package web.weibo.model;

public class Session {
    public String sessionId;
    public String username;

    public Session (String sessionId, String username) {
        this.sessionId = sessionId;
        this.username = username;
    }

    @Override
    public String toString() {
        String s = String.format(
                "(sessionId: %s, 用户名: %s)",
                this.sessionId,
                this.username
        );
        return s;
    }

    public Session() {}

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
}
